public class Animal{
    private String color;
    public int age;
    //提供get和set方法
    public String getColor(){
        return color;
    }
    public void setColor(String color){
        this.color = color;
    }
    public int getAge(){
        return age;
    }
    public void setAge(int age){
        this.age = age;
    }
    public void eat(){
        System.out.println("动物吃饭，吃的东西不确定");
    }
    public void sleep(){
        System.out.println("动物睡觉，睡的地方不确定");
    }
}